package com.ranjiaqi.builder;

/**
 * @ClassName TestAppend
 * @Description TODO
 * @Author hp
 * @Date 2021/6/21 18:06
 * @Version 1.0
 **/
public class TestAppend {
    public static void main(String[] args) {
        //创建StringBuilder对象
        StringBuilder stringBuilder = new StringBuilder();
        //通过链式编程为StringBuilder对象追加内容
        stringBuilder.append("123").append(253).append('a');
        //调用StringBuilder的toString方法。
        System.out.println(stringBuilder);
    }
}
